#指定cmake版本3.10
cmake_minimum_required(VERSION 3.10)
# 设置C编译器为arm-linux-gcc（用于交叉编译ARM架构的程序）
set(CMAKE_C_COMPILER /usr/local/arm/5.4.0/usr/bin/arm-linux-gcc)
# 设置C++编译器为arm-linux-g++（用于交叉编译ARM架构的程序）
set(CMAKE_CXX_COMPILER /usr/local/arm/5.4.0/usr/bin/arm-linux-g++)
#定义项目名称
project(lvgl_fb)
#添加头文件路径
include_directories(.)
include_directories(./lvgl)
include_directories(./lv_drivers)
include_directories(./UI)

link_directories(./lib)
#添加子目录
#add_subdirectory(lvgl)
#add_subdirectory(lv_drivers)
add_subdirectory(UI)
#定义可执行文件
add_executable(${PROJECT_NAME} main.c)
#链接库
target_link_libraries(${PROJECT_NAME} PRIVATE ui lvgl lvgl_examples lvgl_demos lv_drivers)
#target_link_libraries(${PROJECT_NAME} PRIVATE ui lvgl lvgl::examples lvgl::demos lvgl::drivers )